/**
 * 打开弹窗
 * @param title
 * @param url
 * @param width
 * @param height
 * @returns
 */
function openWindow(title,url,endLoad, width,height){
	if(title==undefined) title='';
	if(url==undefined) url='';
	if(width==undefined) width='90%';
	if(height==undefined) height='90%';
	if(endLoad==undefined) endLoad= false;
	if(url=='') return;
	layer.open({
		type: 2,
		title: title,
		shadeClose: true,
		shade: 0.8,
		area: [width+'', height+''],
		content: url //iframe的url
		,end:function(){
			if(endLoad){
				//location.reload();
				load();
			}
		}
	}); 
}

